package test1223;

public class Test06 {
    public static void main(String[] args) {

        // 打印1,3,5,7,9

        // 打印10,8,6,4,2
for (int i = 1; i <=9; i+=2) {
    System.out.println(i);
}
System.out.println();
//打印10,8,6,4,2
for (int i = 10; i >=2; i-=2) {
    System.out.println(i);
}
    }
}
